package com.buchong.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buchong.mapper.BookMapper;
import com.buchong.pojo.Book;
import com.buchong.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ImBookService extends ServiceImpl<BookMapper,Book> implements BookService {
    @Autowired
    private BookMapper bookMapper;

    @Override
    public Book findOne(Integer id) {
        return bookMapper.selectById(id);
    }
}
